<?php

/**
 * 分类标签
 * Some rights reserved：rfcsite.com
 * Contact email:458481812@qq.com
 */
namespace Home\TagLib;

class Jobs {
	public $db, $table_name, $modelid, $where;
	
	/**
	 * 列表
	 * 
	 * @param
	 *        	$catid
	 */
	public function index($data) {
		
		$map[cache]=$data[cache];
		
	
		$uid=$data[uid];
		
		if($uid) $map[where][uid]=$data[uid];
		
		$type=$data[type];
		
		if($type) $map[where][type]=$data[type];
		
		$lev=$data[lev];
		
		if($lev) $map[where][lev]=$data[lev];
		
		$map[where] ['endtime'] = array ("gt", strtotime(date("Y-m-d H",time()))	);
		$map[limit] = $data ['limit']?$data ['limit']:0;
		
		$map[num]= $data ['num'] ? $data ['num'] : 20;
	
		$map[order]=$data[order];
		
		return D("Job")->get_list($map);
		
		
		
		
		
	}

	

	

	
}
